﻿/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#include "../import/head.h"
#include "../global/head.h"
#include "../xos/head.h"
#include "dir_monitor_impl.h"

/////////////////////////////////////////////////////////////////////////////////////////
// 
namespace xos
{
    ////////////////////////////////////////////////////////////////////////////////////
    // 

    static dir_monitor_impl::POOL * pool_ptr = 0;

    ////////////////////////////////////////////////////////////////////////////////////

    dir_monitor_impl::dir_monitor_impl()
    {
    }

    dir_monitor_impl::~dir_monitor_impl()
    {
        term();
    }

    ////////////////////////////////////////////////////////////////////////////////////
    // 

    int dir_monitor_impl::get_addr( POOL *** pppPool, LIST *** pppList )
    {
        int ret = 0;
        if( pppPool )
        {
            *pppPool = &pool_ptr;
        }
        if( pppList )
        {
            *pppList = 0;
        }
        return ret;
    }

    int dir_monitor_impl::init()
    {
        int nRet = 0;
        return nRet;
    }

    int dir_monitor_impl::term()
    {
        int nRet = 0;
        return nRet;
    }

    ////////////////////////////////////////////////////////////////////////////////////
    // 

    // 
    // set callback
    // 
    int dir_monitor_impl::set_callback( xos_box::i_callback * lpCallback, f_runnable lpRunnableObj )
    {
        int nRet = 0;
        return nRet;
    }

    // 
    // set dir to monitor
    // 
    int dir_monitor_impl::set_dir( const char * lpszPath )
    {
        int nRet = 0;
        return nRet;
    }
} // xos
